package com.monitor.entity.request.sediment;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * 分页搜索查询实体类.
 *
 * @author Li Zhiyuan
 * @since 2020-11-18
 */
@Data
public class SedimentFindRequest implements Serializable {
    @ApiModelProperty(value = "项目名称")
    private String entryName;

    @ApiModelProperty(value = "车牌号码")
    private String licensePlate;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间 yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "页码默认为第一页")
    private Integer current=1;

    @ApiModelProperty(value = "每页默认5条数据")
    private Integer size=5;

    /* 企业id */
    private Long companyId;
}
